<admintpl file="header" />
</head>
<body>
<div class="wrap" style="padding-bottom: 0px">
    <p style="text-align:center;font-size: 18px;font-weight: 200">{$titleName}</p>
    钱包总金额：{$sum_data}元
    <form method="post" class="js-ajax-form">
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th align="center">序号</th>
                <th>钱包类别</th>
                <th>总金额</th>
            </tr>
            </thead>
            <tbody>
            <php>
                $type_arr=array('1'=>'跑腿订单收入','2'=>'代购垫付入账','3'=>'帮币兑换收入','4'=>'提现支出','5'=>'推荐用户奖励','6'=>'保险金额','7'=>'押金200元','8'=>'违约金','9'=>'已退金额','10'=>'奖励金额','11'=>'结算');

            </php>
            <foreach name="lists" item="vo" key="k">
                <php>
                    $is_positive="";
                    $is_show_return_money = is_show_return_money($vo['order_id']);
                   if(intval($vo[balance_amount])>0)
                        $is_positive="+";
                    $is_color="";
                    if(intval($is_positive.$vo[balance_amount]) > 0 )
                        $is_color="red";
                </php>
                <tr>
                    <td align="center">{$k+1}</td>
                    <td>{$type_arr[$vo['balance_type']]}</td>
                    <if condition="$is_color == 'red'">
                        <td style="color: red;font-size: 16px">{$is_positive}{$vo[balance_amount]}</td>
                        <else/>
                    <td>{$is_positive}{$vo[balance_amount]}</td>
                    </if>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($lists)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
    setCookie('refersh_time', 0);
    function refersh_window() {
        var refersh_time = getCookie('refersh_time');
        if (refersh_time == 1) {
            window.location = "{:U('Bdrunpeople/trun_list',$formget)}";
        }
    }
    setInterval(function() {
        refersh_window();
    }, 2000);
</script>
</body>
</html>